<style>
    .ui-grid-cell {
        height: auto !important;
    }
</style>
<div class="bg-light lter b-b wrapper-sm">
    <h1 class="m-n font-thin h4">发货单管理</h1>
</div>
<div class="wrapper-sm" ng-controller="orderDeliverManagentController">
    <div class="panel panel-default">
        <div class="panel-heading font-bold">查询</div>
        <div class="panel-body form-horizontal">
            <div class="form-group">
                <label class="control-label pull-left w-xs">订单编号</label>
                <div class="col-md-2">
                    <input type="text" class="form-control input-sm" ng-model="queryTerms.orderId" id="table_orderDeliverManagent_orderId" placeholder="请输入订单编号" name="orderId">
                </div>
                <label class="control-label pull-left w-xs">客户单位</label>
                <div class="col-md-2">
                    <input type="text" class="form-control input-sm" ng-model="queryTerms.clientName" id="table_orderDeliverManagent_clientName" placeholder="请输入客户单位" name="clientName">
                </div>
                <label class="control-label pull-left w-xs">线路地址</label>
                <div class="col-md-2">
                    <input type="text" class="form-control input-sm" ng-model="queryTerms.routeAddress" id="table_orderDeliverManagent_routeAddress" placeholder="请输入线路地址" name="route">
                </div>
                <label class="control-label pull-left w-xs">订单状态</label>
                <div class="col-md-2">
                    <select class="form-control input-sm" ng-model="queryTerms.orderStatus" id="table_orderDeliverManagent_orderStatus" name="orderStatus" ng-options="x.value as x.text for x in orderStatusDropDown">
                        <option value="">全部</option>
                    </select>
                </div>
            </div>
            <div class="form-group">
                <label class="control-label pull-left w-xs">发货起始时间</label>
                <div class="col-md-2 col-xs-12">
                    <div class="input-group input-group-sm date">
                        <input id="shipStartTime" datetimepicker plugintype="datetime" ng-model="queryTerms.startTime" placeholder="起始时间" class="form-control" name="table_orderDeliverManagent_startTime" type="text" />
                        <span id="openStartTime" class="input-group-addon curpoint">
                            <span class="glyphicon glyphicon-calendar"></span>
                        </span>
                    </div>
                </div>
                <label class="control-label pull-left w-xs">发货结束时间</label>
                <div class="col-md-2 col-xs-12">
                    <div class="input-group input-group-sm date">
                        <input id="shipEndTime" datetimepicker plugintype="datetime" ng-model="queryTerms.endTime" placeholder="结束时间" class="form-control" name="table_orderDeliverManagent_endTime" type="text" />
                        <span id="openEndTime" class="input-group-addon curpoint">
                            <span class="glyphicon glyphicon-calendar"></span>
                        </span>
                    </div>
                </div>
                <label class="control-label pull-left w-xs">客服专员</label>
                <div class="col-md-2">
                    <select class="form-control input-sm" ng-model="queryTerms.customerServiceOfficerId" id="table_orderDeliverManagent_customerServiceOfficerId" name="customerServiceOfficerId" ng-options="x.id as x.realName for x in customerServiceDropDown">
                        <option value="">全部</option>
                    </select>
                </div>
                <label class="control-label pull-left w-xs">车长</label>
                <div class="col-md-2">
                    <select class="form-control input-sm" ng-model="queryTerms.carLength" id="table_orderDeliverManagent_carLength" name="carLength" ng-options="x.value as x.text for x in carLengthDropDown">
                        <option value="">全部</option>
                    </select>
                </div>
            </div>
            <div class="form-group">
                <label class="control-label pull-left w-xs">合同号</label>
                <div class="col-md-2">
                    <input type="text" class="form-control input-sm" ng-model="queryTerms.contractId" id="table_orderDeliverManagent_contractId" placeholder="请输入合同号" name="contractNumber">
                </div>
                <label class="control-label pull-left w-xs">合同状态</label>
                <div class="col-md-2">
                    <select class="form-control input-sm" ng-model="queryTerms.contractStatus" id="table_orderDeliverManagent_contractStatus" name="contractStatus" ng-options="x.value as x.text for x in contractStatusDropDown">
                        <option value="">全部</option>
                    </select>
                </div>
                <label class="control-label pull-left w-xs">回单状态</label>
                <div class="col-md-2">
                    <select class="form-control input-sm" ng-model="queryTerms.receiptStatus" id="table_orderDeliverManagent_receiptStatus" name="receiptStatus" ng-options="x.value as x.text for x in receiptStatusDropDown">
                        <option value="">全部</option>
                    </select>
                </div>
                <label class="control-label pull-left w-xs">油卡状态</label>
                <div class="col-md-2">
                    <select class="form-control input-sm" ng-model="queryTerms.oilCardStatus" id="table_orderDeliverManagent_oilCardStatus" name="oilCardStatus" ng-options="x.value as x.text for x in oilCCardStatusDropDown">
                        <option value="">全部</option>
                    </select>
                </div>

            </div>

            <div class="form-group">
                <label class="control-label pull-left w-xs">油卡卡号</label>
                <div class="col-md-2">
                    <input type="text" class="form-control input-sm" ng-model="queryTerms.oilCardNumber" id="table_orderDeliverManagent_oilCardNum" placeholder="油卡卡号" name="oilCardNum">
                </div>
                <label class="control-label pull-left w-xs">调度专员</label>
                <div class="col-md-2">
                    <select class="form-control input-sm" ng-model="queryTerms.dispatchOfficerId" id="table_orderDeliverManagent_dispatchOfficerId" name="dispatchOfficerId" ng-options="x.id as x.realName for x in dispatchOfficerDropDown">
                        <option value="">全部</option>
                    </select>
                </div>
                <label class="control-label pull-left w-xs">发货地址</label>
                <div class="col-md-2">
                    <input type="text" class="form-control input-sm" ng-model="queryTerms.originAddress" id="table_orderDeliverManagent_originAddress" placeholder="请输入发货地址" name="shipAddress">
                </div>
                <label class="control-label pull-left w-xs">送货地址</label>
                <div class="col-md-2">
                    <input type="text" class="form-control input-sm" ng-model="queryTerms.deliverAddress" id="table_orderDeliverManagent_deliverAddress" placeholder="请输入送货地址" name="deliverAddress">
                </div>

            </div>
            <div class="form-group">
                <label class="control-label pull-left w-xs">车牌号</label>
                <div class="col-md-2">
                    <input type="text" class="form-control input-sm" ng-model="queryTerms.carCode" id="table_orderDeliverManagent_carCode" placeholder="请输入车牌号" name="carCode">
                </div>
                <label class="control-label pull-left w-xs">承运商名称</label>
                <div class="col-md-2">
                    <input type="text" class="form-control input-sm" ng-model="queryTerms.carrierName" id="table_orderDeliverManagent_carrierName" placeholder="承运商名称" name="carrierName">
                </div>
                <label class="control-label pull-left w-xs">驾驶员号码</label>
                <div class="col-md-2">
                    <input type="text" class="form-control input-sm" ng-model="queryTerms.driverPhone" id="driverPhone" placeholder="驾驶员号码" name="driverPhone">
                </div>

                <label class="control-label pull-left w-xs">货已送达起始时间</label>
                <div class="col-md-2 col-xs-12">
                    <div class="input-group input-group-sm date">
                        <input id="deliveredStartTime" datetimepicker plugintype="datetime" ng-model="queryTerms.deliveredStartTime" placeholder="起始时间" class="form-control" name="orderDeliver_deliveredStartTime" type="text" />
                        <span id="openDeliveredStart" class="input-group-addon curpoint">
                            <span class="glyphicon glyphicon-calendar"></span>
                        </span>
                    </div>
                </div>
            </div>

            <div class="form-group">
                <label class="control-label pull-left w-xs">货已送达结束时间</label>
                <div class="col-md-2 col-xs-12">
                    <div class="input-group input-group-sm date">
                        <input id="deliveredEndTime" datetimepicker plugintype="datetime" ng-model="queryTerms.deliveredEndTime" placeholder="结束时间" class="form-control" name="orderDeliver_deliveredEndTime" type="text" />
                        <span id="openDeliveredEnd" class="input-group-addon curpoint">
                            <span class="glyphicon glyphicon-calendar"></span>
                        </span>
                    </div>
                </div>
                
                <label class="control-label pull-left w-xs"></label>
                <div class="col-md-2 col-xs-12"></div>
                <label class="control-label pull-left w-xs"></label>
                <div class="col-md-2 col-xs-12"></div>

                <label class="control-label pull-left w-xs"></label>
                <div class="col-md-2 col-xs-12">
                    <button id="table_orderDeliverManagent_search" ng-click="queryFunc()" id="table_orderDeliverManagent_query" class="btn btn-sm btn-default btn-addon" ng-class="{'disabled':querying}" ng-disabled="querying">
                        <i class="fa fa-search" ng-show="!querying"></i>
                        <i class="fa fa-spinner no-bordr" ng-show="querying" ng-class="{'fa-spin':querying}"></i>
                        <span ng-show="!querying">查询</span>
                        <span ng-show="querying">查询中...</span>
                    </button>
                </div>


            </div>

        </div>
    </div>
    <div class="panel panel-default">
        <div class="panel-heading">
            发货单管理列表
        </div>
        <div class="table-responsive">
            <div ui-grid="gridOptions" id="table_orderDeliverManagent_gridOptions" ui-grid-resize-columns ui-grid-pagination ui-grid-selection ui-grid-exporter ui-grid-auto-resize style="height:{{heightA}}px; min-width:1000px; min-height:395px; overflow:hidden;">
                <div class="watermark" ng-if="!gridOptions.data.length">暂无数据</div>
            </div>
        </div>
        <div class="panel-body">
            <button id="table_orderDeliverManagent_detail" ng-click="orderDetail()" class="pull-right-xs btn btn-sm btn-info btn-addon "><i class="fa fa-eye"></i>查看详情</button>
            <button id="table_orderDeliverManagent_excel" ng-click="exportFunc(false)" class="pull-right-xs btn btn-sm btn-success btn-addon "><i class="fa fa-download"></i>导出报表</button>
            <button id="table_orderDeliverManagent_excel2" ng-click="exportFunc(true)" class="pull-right-xs btn btn-sm btn-success btn-addon "><i class="fa fa-download"></i>导出报表2</button>
            <button id="table_orderDeliverManagent_location" class="pull-right-xs btn btn-sm btn-primary btn-addon " ng-click="location()" ng-disabled="carLocation"><i class="fa fa-location-arrow"></i>定位</button>
            <button id="table_orderDeliverManagent_track" class="pull-right-xs btn btn-sm btn-primary btn-addon" ng-click="track()" ng-disabled="carLocation"><i class="fa fa-location-arrow"></i>定位轨迹点</button>
            <button id="table_orderDeliverManagent_BDNPL" class="pull-right-xs btn btn-sm btn-primary btn-addon" ng-click="BDNPL()" ng-disabled="carLocation"><i class="fa fa-location-arrow"></i>北斗定位</button>

        </div>
    </div </div>